Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix commit ordering and traversal for logWalk #141

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GTRI-nathan
Copy link

The compare function was comparing objects instead of seconds, always returning the same result (false, I believe). I believe it is correct to compare just seconds without the offset, as I believe seconds should be since the Unix epoch which is timezone independent, but I'm not positive. When fixed, it revealed that the seen map was not being updated during the walk, leading to duplicate commits being emitted (would walk down both sides of a merge and then the shared history twice).

@TheKnarf
Copy link
Collaborator

Hi @GTRI-nathan and welcome as a first-time contributor!

Would it be possible to add a test verifying the issue you saw? Our test suit is a bit sparse at the moment, but you can find tests in the test/ folder. If I can run a test and verify your changes then I'd love to merge it in. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants